home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / WINDOWS / UWWIN103.ARJ / UW.DOC < prev    next >
Text File  |  1992-01-27  |  20KB  |  472 lines

  1.                 UW/WIN Version 1.03
  2.  
  3.                 Russell Poffenberger
  4.  
  5.                   January 1992
  6.  
  7. INTRODUCTION
  8.  
  9. This document describes version 1.03 of UW/WIN. This application is designed
  10. to run on IBM-PC's and compatible computers under Windows 3.0. This program
  11. was inspired by UW/PC, written by Rhys Weatherley. This program is entirely
  12. independent from UW/PC, and bears no resemblance to UW/PC other than its
  13. basic functionality. UW in general is based on a program written for the
  14. Macintosh by John Bruner. It provides for up to seven separate sessions on
  15. a remote UNIX machine. A UW server package must be running on the UNIX
  16. system for any of the advanced features to work.
  17.  
  18. IMPORTANT NOTE
  19.  
  20. In order to be less "similar" to UW/PC, some of the UW commands have been
  21. changed. Particularly the "New" command (Alt-N, creates a new UW session
  22. and window) has been changed to "Create" (Alt-C), "Kill" (Alt-K, kills
  23. the current window) has been changed to "Remove" (Alt-R), and "Exit" (Alt-E,
  24. exits the UW protocol) has been changed to "Protocol 0" (Alt-0). Also, "Upload"
  25. and "Download" (not implemented yet) have been changed to the "Page Up" and
  26. "Page Down" keys respectively.
  27.  
  28. Version 1.03 is the second version released to the public so far, and comments
  29. are welcome. This version implements the Unix Windows protocols 0 and 1.
  30. The UW server also has a "protocol 2" available, but is not yet implemented.
  31. Protocol 2 provides more window management. Look for support in a future
  32. release.
  33.  
  34. Note that the documentation for the server states that it will probably not
  35. compile on anything but BSD based UNIX systems. It will not work on System V.
  36. Also, UW/WIN will not operate in REAL mode. This is because Borland C++ is
  37. used, and BC++ does not support making REAL mode applications. At such time
  38. that Borland supports this, or Microsoft supports this in a C++ compiler,
  39. I will likely provide REAL mode support.
  40.  
  41. UW/WIN is distributed in the hopes that it will be found useful. If you like
  42. the program, a contribution to the author of $20 (or whatever you feel it
  43. is worth) would be appreciated and will help to keep enhancements and future
  44. products available. With any contribution, you will receive notification
  45. of new versions. With any contribution of $10 or more, you will receive
  46. a bound manual. Feel free to distribute this program as you wish, so long
  47. as its contents, and this notice are not changed. Note, however, that the
  48. server is copyrighted by John Bruner, and is not covered under these terms,
  49. and has its own terms and conditions contained within its documentation. For
  50. that reason, the server is not bundled with this package, but must be obtained
  51. separately.
  52.  
  53. The source code for the server, packaged together with the Macintosh binaries
  54. can be downloaded from some ftp sites.  The standard distribution is
  55. available in the directory "mirrors/unix-c/macintosh" on
  56. "wuarchive.wustl.edu" [128.252.135.4].  The file is named "uw42.tar-z".
  57. On "cica.cica.indiana.edu" [129.79.20.22] as uwserver.zip (no MAC binaries)
  58. in the "pub/pc/win3/util" directory. The DOS based PC version can be obtained
  59. from "wuarchive.wustl.edu" in the mirrors/msdos/modem directory.
  60.  
  61. Comments about UW/WIN can be sent to the author at one of the following
  62. addresses:
  63.  
  64.     Internet: poffen@sj.ate.slb.com
  65.  
  66.         UUCP :    {uunet,decwrl,amdahl}!sjsca4!poffen 
  67.  
  68.         CIS :     72401,276
  69.  
  70.     US mail : Russ Poffenberger
  71.                   2827 Old Estates Ct.
  72.                   San Jose, Ca. 95135
  73.  
  74.  
  75. Comments about UW/PC (the DOS version), can be sent to:
  76.  
  77. Rhys Weatherley -- rhys@cs.uq.oz.au
  78.  
  79. Comments about the UW server for UNIX hosts should be sent to John Bruner:
  80.  
  81.     ARPANET/MILNET:     jdb@mordor.s1.gov
  82.  
  83.     UUCP:         {lll-crg,decwrl,caip}!mordor!jdb
  84.  
  85.     U.S. Mail:     John Bruner
  86.              Lawrence Livermore National Laboratory
  87.              P.O. Box 5503, L-276
  88.              Livermore, CA  94550
  89.  
  90. FILES
  91.  
  92. The following files should be present in the UW/WIN archive:
  93.  
  94.     UWWIN.EXE    The actual UW/WIN Windows 3.0 executable.
  95.     UWWIN.DOC    This documentation file.
  96.     DEFAULT.UW    An example configuration file.
  97.     README.UWW    History of UW/WIN versions.
  98.     UWWIN.HLP       A Windows 3.0 compatible help file.
  99.  
  100. USING UW/WIN
  101.  
  102. When UW/WIN starts, it creates a client area, then brings up the "File | Open"
  103. dialog box, allowing you to select a configuration file. You may select
  104. one of the available files, or press "Cancel". Pressing "Cancel" will NOT
  105. initialize the serial port or parameters. Use the various menus and dialog
  106. boxes (described below) to setup the desired parameters. You may navigate
  107. the drives and directories to find configuration files. By default, the
  108. directory where the UW/WIN executable was executed from is the starting
  109. directory.
  110.  
  111. You may specify the name of a configuration file on the command line. In this
  112. case the opening dialog is skipped, and the configuration file is read in
  113. directly. This allows you to setup filemanager associations, or create an
  114. icon in a program manager group to represent a specific connection.
  115.  
  116. Once you have selected a valid configuration file, or picked a com port for
  117. use from the "Setup | Comm" menu, UW/WIN enters "Protocol 0", which is
  118. equivalent to the dumb terminal emulations available in conventional
  119. communications programs.  The default emulation is ADM31, but VT52 emulation
  120. is also available.  A number of special keystrokes are defined in protocol 0:
  121.  
  122.     ALT-B - Sends a line break over the serial link.
  123.     ALT-I - Send the modem initialization string.
  124.     ALT-U - Send the string defined by the "uw" initialization setup.
  125.         This is useful once connected to start the UW server on
  126.         the UNIX host. See "CONFIGURING UW/WIN" below.
  127.     ALT-Q - Quit the program: All windows will be destroyed, and UW/WIN
  128.         will be exited. You will be prompted before quitting.
  129.  
  130. These functions may also be invoked under the "UW" menu.
  131.  
  132. The purpose of protocol 0 is to allow you to connect to the UNIX host in
  133. in the normal fashion.  When you are ready to use the multiple-window mode
  134. of UW/WIN, execute the UW server on the remote host by typing its command
  135. name, or by pressing ALT-U if the "uw" command string has been
  136. set correctly (see below).  Note that the server must be compiled and
  137. accessible for you to do this.
  138.  
  139. When the server starts, it uses special characters to begin the protocol
  140. with UW/WIN. The current window now becomes UW window 1. At this point, up
  141. to six more login windows may be started, either by using the ALT-N key,
  142. or using the "UW" menu. At this point, ALT-U, or the corresponding menu
  143. have no effect, and the following commands (or menu equivalents) are
  144. available :
  145.  
  146.     ALT-0 - Exit the UW protocol. If any windows are present, they
  147.         will be terminated. You will be prompted for verification
  148.         first. This function does NOT hangup the modem before
  149.         exiting, so UW/WIN can be restarted.
  150.     ALT-R - Remove just the current window.
  151.     ALT-C - Create a new window. Up to 7 windows total may be created,
  152.         if all 7 windows are already up, then this has no effect.
  153.     ALT-n - "n" is a digit between 1 and 7. Make window 'n' the active
  154.         window. It will be brought to the top, and given keyboard
  155.         focus.
  156.  
  157. Usually, if you exit a UNIX shell in a window, that window will be killed
  158. automatically, if you exit window 1, then ALL other windows will be killed,
  159. and UW/WIN will return to protocol 0.
  160.  
  161. Each window contains a status bar at the top. This bar contains information
  162. about the window, such as the window number, the screen size (columns X rows),
  163. and which protocol is in force. The screen size is useful to set the UNIX
  164. terminal characteristics correctly (usually using stty, refer to your UNIX
  165. system documentation for specific information.) after changing the window
  166. size. When a window is iconified, the window name is shortened to indicate
  167. just the window number, so as not to clutter up your windows desktop.
  168.  
  169. The UW server usually defaults to using ADM31 emulation whenever it creates
  170. a new window.  You may need to manually modify the UNIX terminal type in the
  171. windows to get the correct screen behavior if you have set your default
  172. emulation type to something other than ADM31 in the configuration file.
  173. If you are using the Bourne shell compatible shell, you can add the following
  174. lines to your ".cshrc" file to automatically change the terminal type to SS,
  175. where SS is your preferred terminal type.
  176.  
  177.         case $TERM in
  178.           adm31) eval `tset -s SS`;;
  179.           *) ;;
  180.         esac
  181.  
  182. When the UW server starts, it will set the TERMCAP environment variable within
  183. a UW window, but in protocol 0 the TERMCAP environment is not set
  184. automatically.
  185.  
  186. The following TERMCAP string may be used if your system lacks a working adm31
  187. entry. You may create an entry in your termcap file, or set your environment
  188. to this string. The formatting is for looks only, delete all leading and
  189. trailing spaces and returns to make it a single string if setting it in the
  190. TERMCAP variable. If adding to the termcap file, escape the end of each
  191. line with a backslash '\'.
  192.  
  193.     adm31:cr=^M:do=^J:nl=^J:al=\EE:am:le=^H:bs:ce=\ET:
  194.     cm=\E=%+ %+ :cl=^Z:cd=\EY:co#80:dc=\EW:dl=\ER:
  195.     ei=\Er:ho=^^:im=\Eq:li#24:mi:nd=^L:up=^K:MT:km:so=\EG1:se=\EG0:
  196.  
  197. UW/WIN allows for two different emulations to be used automatically. You may
  198. set the protocol 0 emulation (through the Emulation... dialog) to be something
  199. simple, typically vt52, since most UNIX systems have this entry. When entering
  200. protocol 1, the protocol 1 emulation will automatically be used.
  201.  
  202. CONFIGURING UW/WIN
  203.  
  204. When UW/WIN starts up, it first pops up a dialog box allowing you to select
  205. an existing configuration (profile) file. This file conforms to standard
  206. Windows 3.0 ".ini" conventions. If you press "Cancel", then no setups will
  207. occur, and you must use the various setup menus and dialog boxes to configure
  208. the various parameters. Once you have the desired settings, you may save this
  209. to a named profile file. An example configuration file is distributed with
  210. UW/WIN.  Each line of the file is of the form "name=arg" where "name" is the
  211. name of the configurable parameter, and "arg" is its argument.  Comments may
  212. be introduced starting with "#", but may not appear within commands.  The
  213. configurable parameters, which are all optional, and their defaults follow:
  214.  
  215.     comport
  216.  
  217.         The serial port to be used for communications.  This can
  218.         be either 1, 2, 3, or 4.
  219.  
  220.     baudrate
  221.  
  222.         The baud rate to use for transmission.  This can be
  223.         one of 300, 600, 1200, 2400, 4800, 9600 or 19200.
  224.  
  225.     parity
  226.  
  227.         The parity to use for transmission.  This can be one
  228.         of none, even or odd.
  229.  
  230.     datasize
  231.  
  232.         The number of data bits (7 or 8) to use for transmission.
  233.  
  234.     stopbits
  235.  
  236.         The number of stop bits (1 or 2) to use for transmission.
  237.  
  238.     modeminit
  239.  
  240.         The modem initialization string, The string cannot be
  241.         longer than 128 characters in length.
  242.  
  243.     p0emulation
  244.  
  245.         The default terminal emulation type to use for protocol 0.
  246.         This is to rectify some problems with UNIX termcap entries that
  247.         are missing the entry for ADM31 terminals, as discussed 
  248.         above under "USING UW/WIN".  It can be either adm31 or vt52.
  249.  
  250.     p1emulation
  251.  
  252.         Set the terminal emulation type for protocol 1.  This is is
  253.         the emulation used under protocol 1. This can be either adm31
  254.         or vt52.
  255.  
  256.     flowcontrol
  257.         Specifies which type of flowcontrol to use. It can be either
  258.         hardware or software.
  259.  
  260.     dialprefix
  261.  
  262.         This string is sent to the modem when dialing.
  263.  
  264.     phonenumber
  265.  
  266.         This string contains the phone number to send to the modem
  267.         when dialing. It is appended to the dialprefix string.
  268.  
  269.     f1_key - f10_key
  270.  
  271.         These ten configuration variables allow you to define
  272.         the function keys to any strings you desire.  If you do
  273.         not define a function key, it will have its default setting
  274.         as defined by the terminal emulation in use.  The characters
  275.         "^" is used to indicate that the next character is a control
  276.         character, ie "^m" is carriage return. The string should be
  277.         128 characters or less.
  278.  
  279.     uwcommand
  280.  
  281.         This specifies the string to send in response to ALT-u, or
  282.         when selecting "Start UW" from the "UW" menu. The "^"
  283.         character is treated as described above.
  284.  
  285.     fontresources
  286.  
  287.         This specifies the name of a file (or files) to load for extra
  288.         fonts. Usually these are ".fon" files. You can specify more than
  289.         one by separating the file names with a space. This cannot
  290.         be changed at runtime.
  291.  
  292.        historylines
  293.  
  294.                This specifies the number of lines for the scrollback history
  295.                buffer. This cannot be changed at runtime.
  296.  
  297.        bskey_map
  298.  
  299.                If non-zero (true), then the backspace key will output the "del"
  300.                code (0x7f).
  301.  
  302.        redialdelay
  303.  
  304.                This value specifies the delay (in seconds) before attempting
  305.                a redial if the previous dial was unsuccessful in connecting.
  306.  
  307. Most of these options may be changed at runtime using the various menus and
  308. dialog boxes. Any changes made affect only the current session. You may
  309. save these settings to a profile file by choosing the "File | Save" or
  310. "File | Save As" menu item. The menu operations are described below.
  311.  
  312.     File
  313.  
  314.         This menu item contains a submenu consisting of the following
  315.         items.
  316.  
  317.          Open    Provide a dialog box to allow selection of s profile
  318.             file to load.
  319.         Save    Save the current settings to the profile file last
  320.             loaded. If no file has been loaded, the this will
  321.             invoke the "Save As" function explained below.
  322.         Save As    Pop up a dialog box allowing the user to select an
  323.             existing file, or enter a new one to save the current
  324.             settings to. The extension ".uw" is recommended.
  325.         Exit    Exit UW/WIN.
  326.  
  327.     Edit
  328.  
  329.         This is the interface to the clipboard.
  330.  
  331.         Copy    If there is selected text, then this menu is enabled.
  332.             Selecting it will copy the selected text to the
  333.             Windows clipboard.
  334.  
  335.         Paste    If there is compatible text in the clipboard, then
  336.             selecting this function will copy the text from the
  337.             clipboard to the window session, sending it to the
  338.             remote system.
  339.  
  340.         Copy then Paste
  341.             This will perform a copy and subsequent paste in a
  342.             single operation.
  343.  
  344.     Setup
  345.  
  346.         From this menu you can invoke either the "Comm",
  347.         "Initialization", or "Emulation" dialog boxes.
  348.  
  349.         Comm    Use this dialog box to set the various communication
  350.             parameters, such as baud rate, parity, etc.
  351.  
  352.         Initialization
  353.             This dialog box allows you to specify strings to
  354.             use for the dialing prefix, modem initialization,
  355.             and the UW command.
  356.  
  357.         Emulation
  358.             Use this dialog box to select which emulation to
  359.             use for each protocol.
  360.  
  361.     Help
  362.  
  363.         This version of UW/WIN contains a Windows 3.0 compatible help
  364.         file. The items under this menu can be used to index into
  365.         help file using the Windows 3.0 help facility. An "About"
  366.         box provides version and identification information.
  367.  
  368.     Dial
  369.  
  370.         The "Dial" menu provides two entries, "Number" and "Hangup".
  371.  
  372.         Number    This brings up a dialog box allowing you to edit the
  373.             number to dial, and to invoke dialing. Pressing
  374.             "Cancel" before connection has occurred, will
  375.             terminate the call in progress.
  376.  
  377.         Hangup    Selecting this will cause a hangup using the Hayes
  378.             standard escape sequence "+++" to gain control of the
  379.             modem, then issuing "ath0" to hangup the modem. This
  380.             will not gracefully exit the UW protocol, and should
  381.             only be used in an emergency.
  382.  
  383.     Keys | Function
  384.  
  385.         This menu, when selected, will bring up a dialog box allowing
  386.         you to program your own strings to function keys. The dialog
  387.         provides ten radio buttons to select which function key to
  388.         program. The edit box show the current string, and allows you
  389.         to edit the string. Once the string is the way you want it,
  390.         press "Save" to save the string. If you don't save it, it will
  391.         be lost. At this point, you may select another function key
  392.         to program, or exit the dialog box. Strings should be 128
  393.         characters or less.
  394.  
  395.     Keys | Mapping
  396.  
  397.         This dialog allows you to select various default key mappings. Currently,
  398.         the only mapping supported is to map the Backspace key to the Delete
  399.         code (0x7f). Checking the box enables the mapping, unchecking the box
  400.         disables the mapping.
  401.  
  402.     UW
  403.  
  404.         Refer to the UW commands description above.
  405.  
  406.     Help
  407.  
  408.         From this menu, you may index into the help file using the
  409.         Windows help facility.
  410.  
  411.     Fonts
  412.  
  413.         Yoy may select which font you wish to use in the terminal
  414.         windows. The menu is created dynamically based on available
  415.         fixed pitch fonts available at the time UW/WIN was started.
  416.         Even fonts available via ATM may be used. Note that only
  417.         fixed pitch fonts will be shown, and be careful with very
  418.         small fonts. If the font is so small that the system menu
  419.         takes more than one line, then some problems will occur. This
  420.         will hopefully be fixed in a future release (it is a difficult
  421.         problem). There is also a menu entry "Bold". Selecting this
  422.         will toggle bold on/off. When a checkmark is next to it, then
  423.         the characters will be in bold.
  424.  
  425. On startup, UW/WIN uses the default SYSTEM font, and sets the window to
  426. 80 X 24 lines. You may resize the window by dragging a border, just like
  427. any other Windows application. Read the "Microsoft Windows 3.0 Users Guide"
  428. for more info.
  429.  
  430. The standard system colors "WINDOW" and "WINDOW_TEXT" are used for the client
  431. area background and text respectively. These can be changed using the "Color"
  432. utility in the Windows "Control Panel" program manager group.
  433.  
  434. LIMITATIONS
  435.  
  436. There are some limitations in UW/WIN and the UW server. If a lot of data
  437. is being received in one window, the UW server will be slow to process input
  438. from another. This is caused by the server, not UW/WIN. Another problem is
  439. one of modem communication reliability. Unless an error correcting modem
  440. protocol is used, characters could be dropped, lost or garbled. If one of
  441. the protocol bytes gets affected, strange behavior may result, such as output
  442. going to the wrong window, or input from one window going to the wrong
  443. session. If things become entirely out of sync, try exiting the UW protocol.
  444. If this doesn't work, try "ctrl-A" followed by the "Delete" key. The UW commands
  445. are a small part of the total data (statistically speaking) so these problems
  446. should be uncommon. Using an error correcting modem or protocol such as V.42,
  447. MNP 4, or Telebit PEP will avoid these problems. When using such modems, it is
  448. highly recommended that you make use of hardware flow control. Since high speed
  449. error correcting modems implement their own modem to modem flow control, it is
  450. much more efficient to let hardware handshaking govern the flow of characters.
  451. Some high speed protocols, particularly Telebit's PEP, don't switch the
  452. send/receive lines too well when a large amount of traffic is going in one
  453. direction. Attempting to use software flow control (where an XOFF character is
  454. sent to the remote system to turn off output) will generally result in lost
  455. characters. For low speed (2400 and below), the modems have no internal flow
  456. control mechanism, so you must use software flow control.
  457.  
  458. There is also a bug in Windows 3.0 related to the comm ports. If you type
  459. while any window is busy receiving and displaying data, the data you type
  460. may get "stuck" in the send queue. If this appears to happen, wait till the
  461. receive activity is through, and type another key, this will unstick the
  462. queue and send all queued characters.
  463.  
  464. FUTURE WORK
  465.  
  466. In the future, UW/WIN will be extended with the following capabilities: ANSI
  467. terminal emulation, X/Y/Zmodem file transfers in any window (and also
  468. protocol 0), and support for a subset of the UW protocol 2 features which
  469. gives more control over window management. Other minor features may include
  470. saving of selected font information to the configuration file, and other
  471. convenience items. Comments and suggestions are very welcome.
  472.